package reduce.fz.com.reduce.adapter;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;

/**
 * Created by qingshengzheng on 15/8/30.
 */
public abstract class BaseRecycleViewHolder<VC> extends RecyclerView.ViewHolder {
    protected Context context;
    protected LayoutInflater layoutInflater;
    public BaseRecycleViewHolder(View itemView) {
        super(itemView);
        this.context= itemView.getContext();
        this.layoutInflater=LayoutInflater.from(context);
    }
    public  abstract void  renderView(VC data,int position );

    public static BaseRecycleViewHolder getFooter(View view)
    {
        return new BaseRecycleViewHolder(view) {
            @Override
            public void renderView(Object data, int position) {

            }
        };
    }
}